import Fun


def httpLog(text):
    log(text, 'devices_python', 'http_status_text')

def serialLog(text):
    log(text,'devices_python', 'device_status_text')

def log(text,uiName,elname):
    http_status_text = Fun.GetElement(uiName, elname)
    http_status_text.insert('end', text + '\n')
    http_status_text.see("end")
